package org.colin.dictPojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 词典图片表
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-09
 */
@TableName("d_entry_image")
public class DEntryImage extends Model<DEntryImage> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 词条ID
     */
    @TableField("entryId")
    private Integer entryId;

    /**
     * 图片名
     */
    private String name;

    /**
     * 图片地址
     */
    @TableField("imageUrl")
    private String imageUrl;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEntryId() {
        return entryId;
    }

    public void setEntryId(Integer entryId) {
        this.entryId = entryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DEntryImage{" +
        "id=" + id +
        ", entryId=" + entryId +
        ", name=" + name +
        ", imageUrl=" + imageUrl +
        "}";
    }
}
